const body = {
  appid: 'wxb098af698b1631f9',
  out_batch_no: 'test123',
  batch_name: '用户佣金提现',
  total_amount: 100,
  total_num: 1,
  transfer_detail_list: [{
    out_detail_no: 'detail123',
    transfer_amount: 100,
    openid: 'test'
  }]
};

const bodyStr = JSON.stringify(body);
console.log('JSON.stringify结果:', bodyStr);
console.log('是否包含反斜杠:', bodyStr.includes('\\'));

const signatureStr = `POST\n/v3/transfer/batches\n1762745677\n17pdb13k9x7lvbyio48kii\n${bodyStr}\n`;
console.log('\n最终签名串:', signatureStr);
console.log('\n签名串长度:', signatureStr.length);
console.log('签名串最后50字符:', signatureStr.substring(signatureStr.length - 50));
